import { createRouter, createWebHistory } from "vue-router";

// 导入需要的组件
import View2d from "@/pages/View2d.vue";
import View3d from "@/pages/View3d.vue";

// 定义路由
const routes = [
	// { path: "/home", name: "home", component: Home },
	{ path: "/dicom2d", name: "dicom2d", component: View2d },
	{ path: "/dicom3d", name: "dicom3d", component: View3d }
];

// 创建路由器实例
const router = createRouter({
	history: createWebHistory(import.meta.env.VITE_BASE),
	routes
});

export default router;
